<script type="text/javascript">var WEBURLPATH="{WEBURLPATH}";</script>
<script type="text/javascript" src="{WEBURLPATH}/javascript/jquery-1.7.js"></script>
<script type="text/javascript" src="http://ditu.google.cn/maps/api/js?sensor=false"></script>
<div id="map_canvas_edit" style="width:600px; height:400px;"></div>
<script type="text/javascript">
	var cur_latitude = {$webglobal['file_company']['companyData']['company']['latitude']};
	var cur_longitude = {$webglobal['file_company']['companyData']['company']['longitude']};
	var cur_latlng = new google.maps.LatLng({$webglobal['file_company']['companyData']['company']['latitude']}, {$webglobal['file_company']['companyData']['company']['longitude']});
	var cur_default_latlng = new google.maps.LatLng(35.22354439383212, 103.93229484558105);
	var cur_default_zoom = 4;
	var map;
	var new_marker;
	function map_initialize(latlng, zoom)
	{
		$("#map_canvas_edit").show();
		var myOptions = {
				zoom: zoom,
				center: latlng,
				mapTypeControl: false,
				//navigationControl: false,
				streetViewControl: false,
				mapTypeId: google.maps.MapTypeId.ROADMAP
			};
		map = new google.maps.Map(document.getElementById("map_canvas_edit"), myOptions);
	}
	function show_map()
	{
		if (cur_latitude!=0 || cur_longitude!=0)
		{
			map_initialize(cur_latlng, 14);
			var cur_marker = new google.maps.Marker({map: map, position: cur_latlng, icon: WEBURLPATH+'/images/mapflag.png'});
		}
	}
	$(document).ready(function(){show_map();});
</script>